package com.helei.springcloud.service;

import com.helei.springcloud.entity.Resp;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author helei
 * @description PaymentFeignService
 * @date 2020/8/25 17:03
 */
@Component
@FeignClient(value = "cloud-payment-service")
public interface PaymentFeignService {

    @GetMapping("/provider/bbb")
    public Resp find(@RequestParam("id") Integer id);

    @GetMapping("provider/payment/feign/timeout")
    public String paymentFeignTimeout();
}
